#define _CRT_SECURE_NO_WARNINGS 1

#include"Sort.h"
#include"Stack.h"

void test()
{
	int arr[] = { 5, 3, 9, 6, 2, 4, 7, 1, 8 };
	PrintArr(arr, 9);
	MergeSort(arr, 9);
	PrintArr(arr, 9);
}

void test1()
{
	Stack st;
	StackInit(&st);
	StackPush(&st, 1);
	StackPush(&st, 2);
	StackPush(&st, 3);
	StackPush(&st, 4);
	printf("%d\n", StackTop(&st));
	StackPop(&st);
	printf("%d\n", StackTop(&st));
	StackDestroy(&st);
}

int main()
{
	test();
	//test1();
	return 0;
}